Triangle type using if Nested
Check type of triangle